import Vue from 'vue'
import Router from 'vue-router'

import { routers } from './router'
Vue.use(Router)

const router = new Router({routes: routers})

// router.beforeEach((to, from, next) => {
//   console.log('to-->', to);
//   if (to.path === '/') {
//     next({name: 'login'})
//   }
// })



export default router
